<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/tags.jsp" %>   
<%
String path = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</script>
</head>
<body>
<div class="pageContent">
			<div class="pageFormContent" layoutH="56">
				<input name="msgTemplateVO.id" type="hidden" value="<s:property value="msgTemplateVO.id" />" />
				<p>
					<label>模板标题：</label>
					<input name="msgTemplateVO.name" value="<s:property value="msgTemplateVO.name" />"  type="text" size="30" readonly/>
				</p>
				<p>
					<label>模板类型：</label>
					<input type="text" value="${msgTemplateVO.type }" readonly/>
					<!--<select name="msgTemplateVO.type"  onchange="changeTemplateType(this.value);">
                        <option value="">选择模板类型</option>
                        <c:forEach var="item" items="${types}">
                        	<c:if test="${SESSION_USER.customer==null || (SESSION_USER.customer != null && item.name != 'ALL') }">
                        		<option value="${item.name}" ${msgTemplateVO.type eq item.name?"selected":"" }>${item.title}</option>
                        	</c:if>
                        </c:forEach>
                   </select>
                   -->
				</p>
				
				<p>
					<label>模板用途：</label>
					<input type="text" value="${msgTemplateVO.targetType }" readonly/>
					<!--<select  id="targetType"  name="msgTemplateVO.targetType">
                        <option value="">选择模板用途</option>
                        <c:forEach var="item" items="${templateTargets}">
                        	<option value="${item.name}" ${msgTemplateVO.targetType eq item.name?"selected":"" }>${item.title}</option>
                        </c:forEach>
                   </select>-->
				</p>
				
					<p>
						<label>状态：</label>
						<!--<select name="msgTemplateVO.type">
	                        <option value="">选择状态</option>
	                        <c:forEach var="item" items="${statuses}">
	                        	<option value="${item.name}" ${msgTemplateVO.type eq item.name?"selected":"" }>${item.title}</option>
	                        </c:forEach>
	                   </select>-->
	                   <input type="text" value="${msgTemplateVO.status }" readonly/>
	                   
					</p>
			 
				<p  id="customerDiv" style="display:${msgTemplateVO.customerIds == null ?'none':'block'}">
					<label>商户：</label>
					<input id="customerIds" name="msgTemplateVO.customerIds" value="${msgTemplateVO.customerIds}" type="hidden">
					<input name="msgTemplateVO.customerNames" type="text" size="30" value="${msgTemplateVO.customerNames}" readonly/>
				</p>
				<p>
					<label>适用范围：</label>
					<!--<select name="msgTemplateVO.scope">
                        <option value="">选择适用范围</option>
                        <c:forEach var="item" items="${scopes}">
                        	<option value="${item.name}" ${msgTemplateVO.scope eq item.name?"selected":"" }>${item.title}</option>
                        </c:forEach>-->
                        <input type="text" value="${msgTemplateVO.scope }" readonly/>
                   </select>
				</p>
				<p>
					<label>插入：</label>
					<!--<select name="msgTemplateVO.template" id="template" onChange="setTextarea();">
						<option value="">==插入==</option>
                        <c:forEach var="item" items="${templates}">
                        	<option value="${item.name}">${item.title}</option>
                        </c:forEach>-->
                         <input type="text" value="${msgTemplateVO.template }" readonly/>
                   </select>
				</p>
				<div class="divider"></div>
				<p>
					<label>模板内容：</label>
					<textarea id="context"  name="msgTemplateVO.content" rows="15" cols="80" readonly>${msgTemplateVO.content}</textarea>
				</p>
			</div>
	</div>
</body>
</html>